package com.jxl.domain.convert;

import com.jxl.domain.entity.AuthRoleBO;
import com.jxl.infra.basic.entity.AuthRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthRoleBOConvert {

    AuthRoleBOConvert INSTANCE = Mappers.getMapper(AuthRoleBOConvert.class);

    /**
     * 类型转换
     * @param authRoleDto
     * @return
     */
    AuthRole convertBOToAuthRole(AuthRoleBO authRoleDto);

    /**
     * 集合类型转换
     * @param authRoleDtos
     * @return
     */
    List<AuthRole> convertBOToAuthRoleList(List<AuthRoleBO> authRoleDtos);
}
